﻿using Permissions.Role_PermissionsApp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Permissions.Web.Controllers
{
    public class Role_PermissionsController : Controller
    {
        private readonly IRole_PermissionsAppService _rolePermissionsRepository;

        public Role_PermissionsController(IRole_PermissionsAppService rolePermissionsRepository)
        {
            _rolePermissionsRepository = rolePermissionsRepository;
        }

        public ActionResult Index()
        {
            var permissionss = _rolePermissionsRepository.GetRole_Permissionss();

            return View(permissionss);
        }
    }
}